<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>主页</title>
</head>
<body>
    <% if(user){ %> 
        <h2>
            欢迎 <%= user.uname %> 登录，登录时间 <%= new Date() %> 
        </h2>
    <% }else{ %> 
        <h3>
            匿名登录XXXX
        </h3>
    <% } %> 
</body>
</html>